/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package backingBean;

import controller.ControllerLogin;

/**
 *
 * @author user
 */
public class beanIngreso {

    /**
     * Creates a new instance of beanIngreso
     */
    private String user;
    private String pass;

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }
    
    public beanIngreso() {
    }
        public String ingresoAlSistema(){
            
        ControllerLogin ControllerLogin = new ControllerLogin();
        if(ControllerLogin.Login(user, pass)){
            return "yes";
        } else return "no";
    }
        public String retornarAlIndex(){
            return "returnIndex";
        }
}
